home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Everything For A Hacker
/
19990506-[HACK].iso
/
CRACKS
/
TNO-K16P.ZIP
/
TNO-keytext.v1.16.patch.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-06-23
|
2KB
|
79 lines
/* written by Prophecy [tNO] (23rd June 1998)
* compiled with borland c++ v5.02
*
* this source has been included with this patch for educational purposes, so
* other crackers wanting to learn can do so by examining this source file.
*/
#include <stdio.h>
#include <conio.h>
#include <process.h>
int main(){
FILE *fp;
clrscr();
printf("┌─────── ░ ─── ▄ ─────── ░ ────────────┐\n");
printf("■▀██▓▀███▓▀██▓▀██▓▄ ▄▓█▓ ▀▓██▓▀███▓▀ │\n");
printf("│ ▀░ ███▓ █░ ███▀▓▄ ███▓ ███▓ ███▓ │\n");
printf("│ ░███▓ ░███ █████▓ ░███▓ ███▓ │\n");
printf("│ ▄▓███▓▄ ▄▓███▓▄ ▀▓██▓▄▓███▓▄▓██▓▄ │\n");
printf("└───────────────────── ▀▀▓ ────────────┘\n");
printf("\nPatch for Keytext v1.16 (304 640 bytes)");
printf("\nWritten by Prophecy [tNO] (23rd June 1998)\n\n");
fp=fopen("keytext.exe","rb+");
if(fp==NULL){ /* check if the file is available for patching */
printf("Fatal error! (don't you just love those 2 words? :)\n\n");
printf("Could not apply patch, probably because the file is not in the current\n");
printf("directory, is already in use by another application or is in read-only mode.\n");
return -1; /* terminate the patcher */
}
/* check to see if the the filesize match */
int fstat(int handle, struct stat *statbuf);
/* check to see if the checksum match */
/* do the patching */
/* prevent prog from deleting name from registry */
fseek(fp,0x1d8c4L,SEEK_SET);
fputc(0xe9,fp);
fseek(fp,0x1d8c5L,SEEK_SET);
fputc(0x38,fp);
fseek(fp,0x1d8c6L,SEEK_SET);
fputc(0x05,fp);
fseek(fp,0x1d8c7L,SEEK_SET);
fputc(0x00,fp);
fseek(fp,0x1d8c8L,SEEK_SET);
fputc(0x00,fp);
fseek(fp,0x1d8c9L,SEEK_SET);
fputc(0x90,fp);
fseek(fp,0x1d8caL,SEEK_SET);
fputc(0x90,fp);
/* prevent it from crashing when you try and use keytext to paste/type macros */
fseek(fp,0x1b7fbL,SEEK_SET);
fputc(0x75,fp);
fclose(fp); /* close the target */
/* register Keytext to Prophecy [tNO] (there are plenty of keygens available for
this programme, just get one and modify the HKLM\Software\MJMSoft\Keytext\Reg Number
yourself, make sure the 5th char of your code isn't a '-' or a '/', ie get
another keygen if it is)... i have already spent too much time on this target
and although the keygen is not hard, it's still time consuming to write one */
system("regedit keytext.v1.16.serial.reg");
printf("Target successfully patched!");
return 0;
}